Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.10.29
|
Leadtools.Medical.Caching Namespace > Cache Class > Insert Method : Insert(String,Byte[],CacheItemPriority,String) Method |
public virtual void Insert( string id, byte[] data, CacheItemPriority priority, string dependency )
'Declaration Public Overloads Overridable Sub Insert( _ ByVal id As String, _ ByVal data() As Byte, _ ByVal priority As CacheItemPriority, _ ByVal dependency As String _ )
'Usage Dim instance As Cache Dim id As String Dim data() As Byte Dim priority As CacheItemPriority Dim dependency As String instance.Insert(id, data, priority, dependency)
public: virtual void Insert( String^ id, array<byte>^ data, CacheItemPriority priority, String^ dependency )
This method will always try to insert the cache item without checking if the item exists. If the item already exists in the cache the behavior of this method depends of the implementation object of the Leadtools.Medical.Caching.Storage.IStorageProvider interface.
Use the Add(String,Byte[],CacheItemPriority) method to check if the item exists in the cache before inserting the item.